<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="animate.css" rel="stylesheet" type="text/css" />
    <style>
        .demo1 {
            border: 1px solid red;
            background: green;
            height: 200px;
            width: 200px;
            margin: 20px auto;
        }
    </style>
    <script src="https://unpkg.com/vue@2.4.2"></script>

    <script>
        window.onload = function() {
            var vm = new Vue({
                el: '#app',
                data: function() {
                    return {
                        isShow: true,
                        msg: 'hello'
                    }
                }

            })
        };
    </script>
</head>

<body>
    <div id="app">
        <button @click="isShow = !isShow">show/hide</button>
        <transition enter-active-class="animated bounceInDown" leave-active-class="animated bounceOutUp">
            <div class="demo1" v-show="isShow" @click="isShow=!isShow">{{msg}}</div>
        </transition>

        <transition enter-active-class="animated rollIn" leave-active-class="animated rollOut">
            <div class="demo1" v-show="isShow" @click="isShow=!isShow">{{msg}}</div>
        </transition>

        <transition enter-active-class="animated hinge" leave-active-class="animated hinge">
            <div class="demo1" v-show="isShow" @click="isShow=!isShow">{{msg}}</div>
        </transition>


    </div>
</body>

</html>